﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "调拨管理", TableName = "Transfer")]
    /// <summary>
    /// 调拨管理实体类
    /// </summary>
    public partial class Transfer : SysEntity
    {
        /// <summary>
        ///调拨管理主键
        /// </summary>
        [Key]
        [Display(Name = "调拨管理主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid TransferId { get; set; }
        /// <summary>
        ///仓库编号
        /// </summary>
        [Display(Name = "仓库编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string WareCode { get; set; }
        /// <summary>
        ///位置编码
        /// </summary>
        [Display(Name = "位置编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string LocationCode { get; set; }
        /// <summary>
        ///库区名称
        /// </summary>
        [Display(Name = "库区名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ReserName { get; set; }
        /// <summary>
        ///库位名称
        /// </summary>
        [Display(Name = "库位名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string LocaName { get; set; }
        /// <summary>
        ///原料管理编号
        /// </summary>
        [Display(Name = "原料管理编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementBh { get; set; }
        /// <summary>
        ///型号名称
        /// </summary>

        [Display(Name = "型号名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string XinghaoName { get; set; }
        /// <summary>
        ///原料管理名称
        /// </summary>
        [Display(Name = "原料管理名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementName { get; set; }
        /// <summary>
        ///尺寸名称
        /// </summary>

        [Display(Name = "分类名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string SizeName { get; set; }
        /// <summary>
        ///原料批次号
        /// </summary>
        [Display(Name = "原料批次号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementPch { get; set; }
        /// <summary>
        ///单位名称
        /// </summary>

        [Display(Name = "单位名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string DanWeiName { get; set; }
        /// <summary>
        ///调拨编号
        /// </summary>
        [Display(Name = "调拨编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string TransferBh { get; set; }
        /// <summary>
        ///调拨数量
        /// </summary>
        [Display(Name = "调拨数量")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string TransferNum { get; set; }
        /// <summary>
        ///调拨日期
        /// </summary>
        [Display(Name = "调拨日期")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? TransferDate { get; set; }
        /// <summary>
        ///调拨人
        /// </summary>
        [Display(Name = "调拨人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string TransferName { get; set; }
        /// <summary>
        ///调拨原因
        /// </summary>
        [Display(Name = "调拨原因")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string TransferYuanyin { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string TransferDerc { get; set; }
    }
}
